package com.yiqi.news.mvp.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.yiqi.huize.loadImage
import com.yiqi.news.R
import com.yiqi.news.entity.BankCardVO
import kotlinx.android.synthetic.main.item_label.view.*

class LabelAdapter : BaseQuickAdapter<BankCardVO, BaseViewHolder>(R.layout.item_label) {
    override fun convert(helper: BaseViewHolder, item: BankCardVO) {
        val itemView = helper.itemView
        itemView.iv_bank_name.text = item.accBankName
        itemView.iv_bank_logo.loadImage(item.accBankImg)
        helper.addOnClickListener(R.id.btnDelete).addOnClickListener(R.id.btn_select_bank)

    }

}
